// JavaScript Document
function startdate(){
	var d=new Date();
	var weekday=new Array(7);
	weekday[0]="星期日";
	weekday[1]="星期一";
	weekday[2]="星期二";
	weekday[3]="星期三";
	weekday[4]="星期四";
	weekday[5]="星期五";
	weekday[6]="星期六";

	document.getElementById('date').innerHTML=weekday[d.getDay()];
	
}

function startTime(){
	var today=new Date();
	var h=today.getHours();
	var m=today.getMinutes();
	var s=today.getSeconds();
	// add a zero in front of numbers<10
	m=checkTime(m);
	s=checkTime(s);
	document.getElementById('time').innerHTML=h+":"+m+":"+s
	t=setTimeout('startTime()',1000);
	
}

function checkTime(i){
	if (i<10) 
  	{i="0" + i;}
  	return i;
}

function diu(){
	var ch=document.getElementById("center_content").style.offsetHeight +"px";
	document.getElementById("left_content").style.height = ch;
	document.getElementById("right_content").style.height = ch;
}